@import url('./monthPanel.css');
@import url('./yearPanel.css');
* {
    margin: 0;
    padding: 0;
    user-select: none;
}

.calendar {
    padding: 42px 24px 50px;
    color: black;
    border: 1px solid black;
    width: 966px;
    margin: 0 auto;
}

.calendar .header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 0;
    font-size: 12px;
}

.selectedYear, .selectedMonth {
    margin-right: 10px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 30px;
    position: relative;
    color: black;
}

.selectedYear:hover, .selectedMonth:hover {
    border-color: #1890FF;
    cursor: pointer;
}

.yearSelect, .monthSelect {
    left: 0;
    top: 32px;
    width: 100%;
    position: absolute;
    background-color: white;
    box-shadow: 0 0 3px rgb(110, 110, 110);
    list-style: none;
    padding: 4px 0;
    height: 240px;
    overflow-y: auto;
    color: black;
}

.yearSelect li {
    height: 30px;
}

.selectedMonth::after, .selectedYear::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg) translateY(-4px);
    border: 1px solid #ccc;
    border-top: none;
    border-left: none;
    margin: 0 5px;
}


.month, .year {
    width: 44px;
    height: 30px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

.monthInit{
    color: #1890FF;
    border-color: #1890FF;
}


.month:hover, .year:hover {
    color: #1890FF;
}



.yearSelect::-webkit-scrollbar, .monthSelect::-webkit-scrollbar {
    width: 10px;
    /*对垂直流动条有效*/
}

/*定义滚动条的轨道颜色、内阴影及圆角*/

.yearSelect::-webkit-scrollbar-track, .monthSelect::-webkit-scrollbar-track {
    
    border-radius: 3px;
}

/*定义滑块颜色、内阴影及圆角*/

.yearSelect::-webkit-scrollbar-thumb, .monthSelect::-webkit-scrollbar-thumb {
    background: #7a7a7ad9;
    border-radius: 7px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    position: absolute;
}

/* 定义选择框的激活样式 */
.activebox{
    border: 1px solid #1890FF;
}

/* 定义选择按钮的激活样式*/
.activeButton{
    color: #1890FF;
    border: 1px solid #1890FF;
}


.activeTd{
    background-color: rgb(230, 247, 255);
    color: #1890FF;
}

.activeLi{
    color :black;
    font-weight :bold;
    background-color :rgb(230, 247, 255);
}

.overTd{
    background-color: #ccc;
}

.overLi{
    background-color: #ccc;
}

